package com.webtest.mvctest2.dao;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/7/28 17:04
 */
public class CriteriaCustomer {
    private String name;
    private String address;
    private String phone;

    public CriteriaCustomer(String name, String address, String phone) {
        this.name = name;
        this.address = address;
        this.phone = phone;
    }

    public String getName() {
        if (name == null) {
            return "%%";
        }
        return "%" + name + "%";
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        if (address == null) {
            return "%%";
        }
        return "%" + address + "%";
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        if (phone == null) {
            return "%%";
        }
        return "%" + phone + "%";
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
